home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 28
/
Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso
/
Aminet
/
dev
/
misc
/
gms_strings.lha
/
COMPILE_STRINGS.TXT
next >
Wrap
Text File
|
1998-08-22
|
1KB
|
28 lines
This source code requires the GMS developer archive available from Aminet
(dev/misc/gms_dev.lha). Compilation of this module means that you have
read and agreed to the text in the DISTRIBUTION.TXT file.
NOTE: There is a bug in SAS/C which occurs when using registers a0 and a1
together in a function. This only happens when both registers are using a
pointer type, such as BYTE *, APTR or struct Object *. So if you see such
definitions being replaced with LONGs and then being converted inside the
function, it is done specifically to prevent this bug.
To compile every part of the colours module with SAS/C:
1> sc str_data.c <Compile the data area>
1> sc strings.c <Compile the code>
1> link.scr <Link it>
To compile with DiceC:
1> dcc -c -l0 -mD -mi strings.c -o strings.o
1> dcc -c -l0 -mD -mi str_data.c -o str_data.o
1> dlink str_data.o strings.o -o GMS:System/strings.mod
If the dpkernel.library is resident after compilation (eg. you have run
some demos before-hand) then you will need to do a "flush dpkernel.library"
so that the module will be reloaded the next time you run something.